package com.cvs.service.impl;

import com.cvs.bean.JiFen;
import com.cvs.dao.JiFenMapper;
import com.cvs.service.JiFenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("jiFenService")
public class JiFenServiceImpl implements JiFenService {
    @Autowired
    private JiFenMapper jiFenMapper;
    @Override
    public List<JiFen> findAll(Integer id) {
        return jiFenMapper.findAll(id);
    }

    @Override
    public int addJiFenLog(JiFen jiFen) {
        return jiFenMapper.addJiFenLog(jiFen);
    }

    @Override
    public  List<Map<String,Object>> findCount(Integer uid) {
        return jiFenMapper.findCount(uid);
    }
}
